package net.towee.model.discussion;

import java.util.Date;

import net.towee.model.account.AccountIdentity;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * This model consists of message information and data
 * @author c58
 */
public interface Message extends IsSerializable  {
	/**
	 * @return integer ID of this message in container
	 */
	String getId();
	
	/**
	 * @return author account identity
	 */
	AccountIdentity getAuthor();
	
	/**
	 * @return date of creation
	 */
	Date getCreationDate();
	
	/** 
	 * @return text of comment 
	 */
	String getText();
	
	/**
	 * Set text of comment
	 * @param text
	 */
	void setText(String text);

	/**
	 * Set author of this message
	 * @param accountIdentity
	 */
	void setAuthor(AccountIdentity accountIdentity);

	/**
	 * Set message id
	 * @param messId
	 */
	void setId(String messId);
}